package com.harmontronics.hanma.paas.paas.domain.organization.repository.po;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 用户和组织映射表
 * 
 * @author paas-generator
 * @email paas-generator@harmontronics.com
 * @date 2021-04-01 14:45:14
 */
@Data
@TableName("hm_user_org")
public class HmUserOrgPO implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * $column.comments
	 */
	@TableId
			private Integer id;
	/**
	 * 用户id
	 */
			private Long userId;
	/**
	 * 组织结构id
	 */
			private Long orgId;
	/**
	 * 是否主部门,0: 否 1: 是 
	 */
			private Integer master;
	/**
	 * 是否删除,0: 未删除 1: 删除 
	 */
			private Integer deleted;
	/**
	 * $column.comments
	 */
			@TableField(fill = FieldFill.INSERT)
		private String createBy;
	/**
	 * $column.comments
	 */
			@TableField(fill = FieldFill.INSERT)
		private LocalDateTime createDate;
	/**
	 * $column.comments
	 */
				@TableField(fill = FieldFill.INSERT_UPDATE)
	private String modifyBy;
	/**
	 * $column.comments
	 */
				@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime modifyDate;

}
